package com.liuda066.forumssm.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("站内信类")
public class Message {
    @ApiModelProperty("站内信ID")
    private Long id;

    @ApiModelProperty("发送用户ID")
    private Long postUserId;

    @ApiModelProperty("回复用户ID")
    private Long receiveUserId;

    @ApiModelProperty("信息内容")
    private String content;

    @ApiModelProperty("状态 0 未读  1 已读 2 已回复 ")
    private Byte state;

    @ApiModelProperty("删除状态  0 正常 1 删除")
    private Byte deleteState;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("关联对象")
    private User postUser;

}